﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Chinook.Facade.Messaging;

namespace Chinook.Web.DataGrid
{
    public partial class FlexiGrid : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            AddExternalJavaScript("js/Jquery/flexigrid.pack.js");
            var request = new EmployeeSearchRequest {PageIndex = 1, PageSize = 10};
            Logger.Log("FlexiGrid->", Base.Utils.Logging.LogType.Info);
            Logger.Log(ChinookWebFactory.EmployeeAppService.SearchEmployee(request).EmployeeViewModel.Count.ToString(), Base.Utils.Logging.LogType.Info);
            Logger.Log("<-FlexiGrid", Base.Utils.Logging.LogType.Info);
        }
    }
}
